package com.yyk.dzvisit.model.dto.req;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.ToString;

import javax.validation.constraints.Min;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.io.Serializable;

/**
 * create by zhouc 2019/12/05
 */
@Data
@ToString
@ApiModel
public class UserTokenWithLoginReq implements Serializable {

    private static final long serialVersionUID = 972624216374128170L;

    @NotBlank(message = "系统来源 不能为空")
    @ApiModelProperty(value = "系统来源", required = true, example = "XLZX")
    private String systemSource;

    @NotNull(message = "用户id 不能为空")
    @Min(value = 0)
    @ApiModelProperty(value = "用户id")
    private Integer axUid;

    @NotNull(message = "是否是临时用户")
    @ApiModelProperty(value = "是否是临时用户", required = true, example = "false")
    private Boolean isGuest = true;

    @ApiModelProperty(value = "用户ip")
    private String clientIp;
}